<?php include template("html_header");?>

<div id="hdw">
	<div id="hd">
		<div id="logo">
		  <p><a href="/index.php" class="link"><img src="/static/css/i/logo.gif" /></a><br />
	      </p>
	  </div>
		<div class="guides">
		  <div class="city">
			<h2><?php echo $city['name']; ?></h2>
		  </div>
			<?php if(count($INI['hotcity'])>1||!in_array($city['ename'], array_keys($INI['hotcity']))){?>
			<div id="guides-city-change" class="change">Mudar Cidade</div>
			<div id="guides-city-list" class="city-list">
				<ul><?php echo current_city($city['ename'], $INI['hotcity']); ?></ul>
		      <p>&nbsp;</p>
	    </div>
			<?php }?>
			
	  </div>
	  
	
	  
		<ul class="nav cf">
		  <p><?php echo current_frontend(); ?></p>
      </ul>
		<div class="refer">
		&raquo; <a href="/account/invite.php">Convidar um Amigo</a>&nbsp;&nbsp;&nbsp;
		&raquo; <a id="verify-coupon-id" href="javascript:;">Verificar Cupom</a>
		&nbsp;&nbsp;&nbsp;
		&raquo; <?php if(is_manager()){?><a href="/manage/index.php"><strong style="color:#FFEA00">Gerenciar</strong></a> <?php }?>
		
		
		
		
  </div>
		<?php if($login_user){?>
		<div class="logins">
			<ul id="account">
				<li class="username">Olá, <?php echo $login_user['username']; ?>!</li>
				<li class="account"><a href="/order/index.php" id="myaccount" class="account">Minha Conta</a></li>
				<li class="logout"><a href="/account/logout.php">Sair</a></li>
			</ul>
			<div class="line islogin"></div>
		</div>
		<ul id="myaccount-menu">
			<li><a href="/order/index.php">Minhas Ofertas</a></li>
			<li><a href="/coupon/index.php">Meus <?php echo $INI['system']['couponname']; ?></a></li>
			<li><a href="/account/settings.php">Configurações</a></li>
		</ul>
		<?php } else { ?>
		<div class="logins">
			<ul id="account">
				<li class="login"><a href="/account/login.php">Login</a></li>
				<li class="signup"><a href="/account/signup.php">Cadastre-se</a></li>				
			</ul>
			<div class="line "></div>
	  </div>
		<?php }?>
	</div>
</div>

<?php if($session_notice=Session::Get('notice',true)){?>
<div class="sysmsgw" id="sysmsg-success"><div class="sysmsg"><p><?php echo $session_notice; ?></p><span class="close">Fechar</span></div></div> 
<?php }?>
<?php if($session_notice=Session::Get('error',true)){?>
<div class="sysmsgw" id="sysmsg-error"><div class="sysmsg"><p><?php echo $session_notice; ?></p><span class="close">Fechar</span></div></div> 
<?php }?>
